@import '../style/layout-mandala.scss';
.el-drawer__wrapper.g-drawer--setting {
  font-size: 14px;
  .el-drawer__header {
    margin-bottom: 0;
    font-size: 24px;
  }
  .el-drawer__body {
    padding: 24px;
    overflow: auto;
    @include div--webkit--scrollbar();
    .layout-img__wrap {
      display: flex;
      align-items: center;
      padding-bottom: 15px;
      justify-content: space-between;
      .layout__img-item {
        width: 44px;
        height: 36px;
        position: relative;
        border-radius: 3px;
        overflow: hidden;
        background-color: #f0f2f5;
        box-shadow: 0 3px 3px 0 rgba(0, 0, 0, 0.1), 0 -2px 3px 0 rgba(0, 0, 0, 0.1);
        //margin-right: 14px;
        cursor: pointer;
        div:nth-child(1) {
          width: 15px;
          height: 100%;
          position: absolute;
          left: 0;
          top: 0;
        }
        div:nth-child(2) {
          width: 100%;
          height: 9px;
          position: absolute;
          top: 0;
        }
        &.layout__img-item--active {
          &:after {
            content: '✓';
            position: absolute;
            right: 6px;
            bottom: 6px;
            width: 14px;
            height: 14px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: $--color-primary;
            font-weight: 700;
            font-size: 14px;
            pointer-events: none;
          }
        }
      }
      .img-horizontal {
        div:nth-child(1) {
          background: #333;
          z-index: 2;
        }
        div:nth-child(2) {
          background: #fff;
          z-index: 1;
        }
      }
      .img-vertical {
        &:after {
          right: 15px !important;
        }
        div:nth-child(1) {
          background: transparent;
        }
        div:nth-child(2) {
          background: #333;
          z-index: 1;
        }
      }
      .img-horizontal-vertical {
        div:nth-child(1) {
          background: #333;
        }
        div:nth-child(2) {
          background: #333;
          z-index: 1;
        }
      }
      .layout--mandala {
        div:nth-child(1) {
          background: #fff;
          z-index: 1;
          ul {
            padding: 12px 0 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            li {
              height: 2px;
              border-radius: 2px;
              background: $--color-primary;
              margin: 0 2px;
            }
            li + li {
              margin-top: 4px;
            }
          }
        }
        div:nth-child(2) {
          background: $--color-primary;
          padding-left: 18px;
          ul {
            width: 100%;
            margin: 10px auto 0;
            list-style: none;
            display: flex;
            li {
              height: 3px;
              width: 4px;
              border-radius: 2px;
              background: $--app-nav-item-background-color-inactive;
              &:nth-child(2) {
                background: $--app-nav-item-background-color-active;
              }
            }
            li + li {
              margin-left: 2px;
            }
          }
        }
      }
      .layout--default {
        div:nth-child(1) {
          background: #333333;
          z-index: 10;
          width: 5px;
          div:nth-child(1) {
            position: absolute;
            height: 2px;
            width: 2px;
            background: #fff;
            top: 3px;
            left: 1.5px;
          }
          ul {
            padding: 12px 0 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            li {
              height: 1px;
              width: 3px;
              background: #fff;
              margin-left: 1px;
              &:nth-child(1) {
                background: $--app-nav-item-background-color-active;
              }
            }
            li + li {
              margin-top: 3px;
            }
          }
        }
        div:nth-child(2) {
          background: #fff;
          z-index: 10;
          width: 10px;
          position: absolute;
          left: 5px;
          height: 100%;
          ul {
            padding: 8px 0 0;
            list-style: none;
            display: flex;
            flex-direction: column;
            li {
              height: 2px;
              border-radius: 2px;
              background: $--color-primary;
              margin: 0 2px;
            }
            li + li {
              margin-top: 3px;
            }
          }
        }
        div:nth-child(3) {
          background: #fff;
          padding-left: 18px;
          top: 0;
          position: absolute;
          height: 9px;
          width: 100%;
          border-bottom: 1px solid #e8eaec;
          ul {
            width: 100%;
            margin: 10px auto 0;
            list-style: none;
            display: flex;
            li {
              height: 3px;
              width: 4px;
              border-radius: 2px;
              background: $--app-nav-item-background-color-inactive;
              &:nth-child(2) {
                background: $--app-nav-item-background-color-active;
              }
            }
            li + li {
              margin-left: 2px;
            }
          }
        }
      }
    }

    .menu-style__wrap {
      width: 100%;
      padding-bottom: 15px;
      .el-radio-group {
        width: 100%;
        display: flex;
        .el-radio-button {
          flex: 1;
          .el-radio-button__inner {
            width: 100%;
          }
        }
      }
    }
    .theme-color__wrap {
      width: 100%;
      display: flex;
      align-items: center;
      padding-bottom: 15px;
      .theme-color-item {
        width: 20px;
        height: 20px;
        margin-right: 8px;
        color: #fff;
        font-weight: 700;
        text-align: center;
        border-radius: 2px;
        cursor: pointer;
        position: relative;
      }
      .theme-color-item--active {
        &:after {
          content: '✓';
          position: absolute;
          left: 0;
          top: 0;
          right: 0;
          bottom: 0;
          color: #fff;
          font-weight: 700;
          font-size: 14px;
          pointer-events: none;
        }
      }
    }

    .other-setting__wrap {
    }
    .setting__item {
      display: flex;
      justify-content: space-between;
      padding: 10px 0;
      color: rgba(0, 0, 0, 0.65);
      font-size: 14px;
      .el-switch {
        width: 30px;
        line-height: 16px;
        height: 16px;
        .el-switch__core {
          line-height: 16px;
          height: 16px;
          width: 30px !important;
          &::after {
            width: 12px;
            height: 12px;
            top: 1px;
          }
        }
        &.is-checked {
          .el-switch__core {
            &::after {
              left: 100%;
              margin-left: -13px;
            }
          }
        }
      }
    }

    .reset__wrap {
      @include flex-center();
    }
  }
}
